package com.tyk.bookstore.front.product.model.enume;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.front.common.core.model.enume.BaseEnum;

public enum BookState implements BaseEnum {
    OFF(0),
    ON(1);

    @JsonValue
    private final Integer code;

    @Override
    public Integer value() {
        return this.code;
    }

    BookState(Integer code) {
        this.code = code;
    }
}
